package com.serviceImpl;

import com.model.Person;
import com.service.ISayHello;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class SayHelloImpl implements ISayHello {
    @Override
    public String sayHello(String name) {
        return name+" 你好。";
    }

    @Override
    public String sayHello(Person person) {
        return person.toString();
    }
}
